package com.zhuiyun.pm.client.login.service;

import com.zhuiyun.pm.config.CommonResult;

/**
 * @author syc
 * @date 2023/4/2 18:04
 */
public interface ChatRecordService {
   CommonResult getUserChatRecord(String fromUserName, String toUserName);
   /**
   * @Author sgo
   * @Description 添加消息
   * @Date 2023/4/2 19:26
   * @Return int
   * @param fromUsernmae
   * @param text
   * @param toUsername
   * @param state
   */
   int insertChatRecord(String fromUsernmae,String text,String toUsername,String state);

   /**
   * @Author sgo
   * @Description 修改消息状态
   * @Date 2023/4/2 20:46
   * @Return java.lang.Integer
   * @param fromUserName
   * @param toUserName
   */
    Integer modifyMessagestate(String fromUserName, String toUserName);
}
